package com.github.binarywang.demo.wx.miniapp.wechat.entity;

import cn.hutool.db.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * app_weChat 实体类
 * Created by 小柒2012
 * Sun Oct 27 13:03:00 CST 2019
 */
@Data
public class WeChat extends Page implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 用户唯一标识
     */
    private String openid;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 头像地址
     */
    private String avatarUrl;

    /**
     * 城市
     */
    private String city;
    /**
     * 国家
     */
    private String country;

    /**
     * 性别
     */
    private Short gender;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp gmtCreate;

    /**
     * 订阅推送
     */
    private Short subscribe;

}

